<?php

namespace core\base;

use yii\web\Controller;

class BaseController extends Controller
{
    public function renderJson($params)
    {
        // 指定json
        header('Content-type:application/json');
        echo json_encode($params);
        \Yii::$app->end();
    }

    public function hasLogin(){

    }
}
